from gevent.monkey import patch_all
patch_all()

import gevent
import requests

def work1():
    for i in range(5):
        print("这个是work1")
        requests.get("http://www.baidu.com")

def work2():
    for i in range(5):
        print("这个是work2")
        requests.get("http://www.baidu.com")

g1=gevent.spawn(work1)
g2=gevent.spawn(work2)

g1.join()
g2.join()
